﻿namespace Bilibili.Model.Live
{
    public sealed class LiveUserInfoModel
    {
        public string uname { get; set; }
        public string face { get; set; }
        public int silver { get; set; }
        public int gold { get; set; }
        public UserInfoMedalModel medal { get; set; }
        public int vip { get; set; }
        public string vipInfo => vip == 1 ? ExTime : "你还不是老爷哦";
        public int svip { get; set; }
        public string svip_time { get; set; }
        public string vip_time { get; set; }
        public UserInfoWearTitleModel wearTitle { get; set; }
        public int isSign { get; set; }
        public int user_level { get; set; }
        public string user_level_color { get; set; }
        public int room_id { get; set; }
        public int use_count { get; set; }
        public int vip_view_status { get; set; }
        public string ExTime
        {
            get
            {
                if (svip != 0)
                    return "年费老爷 到期时间" + svip_time;
                if (vip != 0)
                    return "月费老爷 到期时间" + vip_time;
                return string.Empty;
            }
        }
    }
}